<%inherit file="base.html"/>
<h2>${_('System Information')}</h2>
<div id="tabNav">
    <ul>
    </ul>
    <div class="clr"><br/></div>
</div>
<div class="section" id="info">
    <h3>${_('Create new dataset')}</h3>
    % if errors:
        <div class="alert">${message}</div>
    % endif
    % if created:
        <div class="intro">
            <p>${_('Dataset created')}</p>
        </div>
        <table class="dataset">
        <tr>
            <th>Name</th>
            <td>${name}</td>
        </tr>
        <tr>
            <th>IID</th>
            <td>${dataset_iid}</td>
        </tr>
        <tr>
            <th>Type</th>
            <td>${type}</td>
        </tr>
        </table>
    % else:
        <div class="intro">
            <p>${_('This is a developer tool which should not be used unless familiar with the Peerscape application API.')}</p>
        </div>
        <form id="createGroupForm" action="/create_dataset/" method="post">
            <dl class="generic">
                <dt><label for="name">${_('Dataset name')}</label></dt>
                <dd>
                    <input type="text" class="text" name="name" id="name" value="${name}"/>
                </dd>
                <dt><label for="type">${_('Dataset type')}</label></dt>
                <dd>
                    <input type="text" class="text" name="type" id="type" value="${type}"/>
                </dd>
            </dl>
            <dl>
                <dd class="buttons">
                    <input type="submit" class="submit default" value="${_('Create')}"/>
                </dd>
                <dd class="buttons cancel">
                    <a href="http://admin.hexlabel.net/" class="button">${_('Cancel')}</a>
                </dd>
            </dl>
            <div class="clr"><br/></div>
        </form>
    % endif
</div>

<!-- defs -->
<%def name="title()">P2P Fusion - Peerscape | ${_('Peerscape System')} | ${_('Create new dataset')}</%def>
<%def name="body_class()">
    admin self
</%def>
<%def name="toplinks_style()">
</%def>

